<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-for遍历对象</title>
</head>
<body>

<div id="app">
  <h2 v-for="(value, key, index) in boy">{{value}}--{{key}}--{{index}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      boy: {
        name: 'hehe',
        age: 18,
        height : 188
      }
    }
  })
</script>
</body>
</html>
